export default {
    template:`
    <div class="film-source">
        <template v-if="source!==null">
            <span class="star-img" v-for="c in 5" :class=" source>=c?'open':'close' "></span>
            <span class="star-source">{{ source.toFixed(1) }}</span>
        </template>
        <span class="star-tip" v-else>暂无评分</span>
    </div>
    `,
    props:{
        source:{
            type:Number,
            default:null
        }
    }
}